<?php

declare(strict_types=1);

namespace app\common\model\dynamic;

use app\common\model\user\UserModel;
use Dengje\Pxy\BaseModel;

class DynamicCommentModel extends BaseModel
{
    protected $name = 'dynamic_comment';

    public function user()
    {
        return $this->hasOne(UserModel::class, "id", "user_id")->field("id,name,avatar,gender,age,type");
    }
}